import request from "@/utils/request";

// 基础路径
const baseUrl = import.meta.env.VITE_APP_PORTAL_API;

// 获取列表
export function getAllList(query) {
  return request({
    url:baseUrl + "/symbol/getPage",
    method: "get",
    params: query,
  });
}

// 获取登录人信息
export function getPermission() {
  return request({
    url: baseUrl + "/authority/getRoleByUserId",
    method: "get",
  });
}

// 上传
export function saveSymbol(data) {
  return request({
    url: baseUrl + "/symbol/save",
    method: "post",
    data: data,
  });
}

// 删除
export function delSymbol(id) {
  return request({
    url: baseUrl + '/symbol/delete/' + id,
    method: 'post'
  })
}

// 批量下载
export function bathDownload(data) {
  return request({
    url: baseUrl + "/symbol/bathDownload",
    method: "get",
    params:data
  });
}
